<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    asyncTest(done => {
        const data = "param-a=value-a&param-b=value-b&param-c=value-c1&param-c=value-c2";
        const response = new Response(data, {
            headers: {
                "Content-Type": "application/x-www-form-urlencoded",
            },
        });

        response.formData().then((formData) => {
            println(formData.get("param-a"));
            println(formData.get("param-b"));
            println(formData.getAll("param-c"));
            done();
        });
    });
</script>
